// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from '@/App'
import router from '@/router'       // api: https://github.com/vuejs/vue-router
import store from '@/store'         // api: https://github.com/vuejs/vuex
import VueCookie from 'vue-cookie'  // api: https://github.com/alfhen/vue-cookie
import '@/element-ui'               // api: https://github.com/ElemeFE/element
import '@/iconfont'                 // api: http://www.iconfont.cn/
import '@/assets/scss/index.scss'
import {isAuth} from '@/utils'
// import '@/mock'                     // api: https://github.com/nuysoft/Mock
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import BaiduMap from 'vue-baidu-map'
// 全局引入echarts
// import echarts from 'echarts'
//
// Vue.prototype.$echarts = echarts
// 全局引入百度地图API
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'gVqRwNndVMzxUnOg0uisGuPPgiaL4Mv7'
})
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(VueCookie)
Vue.prototype.isAuth = isAuth // 挂载权限方法
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {App}
})
